home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Presentations / Presentations ’97 / Sessions ’97 / Java for Macintosh Applications / JRI Native / TimeUtils.java < prev    next >
Encoding:
Text File  |  1997-06-27  |  492 b   |  31 lines  |  [TEXT/CWIE]

  1. /*
  2.     Test.java
  3.  
  4.     Test of JRI Native Methods.
  5.  
  6.     © 1997 by Michael J. Webb (mjw@codewell.com)
  7.  
  8. */
  9.  
  10. class TimeUtils
  11. {
  12.  
  13.     static
  14.     {
  15.         System.loadLibrary("JRITimeUtilsPPC");
  16.     }
  17.  
  18.     /** A static native method to access the system clock.
  19.      */
  20.     public static native int GetRealTime();
  21.  
  22.     /** A static native method to get the tick count.
  23.      */
  24.     public static native int GetRelativeTime();
  25.  
  26.     /** A static native method to get a time string.
  27.      */
  28.     public static native String GetTimeString(int someTime);
  29.  
  30. }
  31.